package old.apiday01;
//String trim(),去除字符串两边的空白字符
public class TrimDemo {
    public static void main(String[] args) {
        String str="          hello world         ";
        String str1=str.trim();//去除str两边的空白字符，并将去除后的新对象存储到新对象str1中
        System.out.println(str1);

    }
}
